"""Bug URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""

from web.views import account, pay, organ, G, organnext
from django.conf.urls import url
from web.views import home


urlpatterns = [

    url(r'^register/$', account.register, name="register"),
    url(r'^Gregister/$', account.Gregister, name="Gregister"),
    url(r'^send/sms/$', account.send_sms, name="send_sms"),  # 只要网页中有send_sms 替换成/send/sms/
    url(r'^login/sms/$', account.login_sms, name="login_sms"), # 短信登陆
    url(r'^login/$', account.login, name='login'),
   url(r'^image/code/$', account.image_code, name='image_code'),
   url(r'^index/$', home.index, name='index'),
   url(r'^logout/$', account.logout, name='logout'),
  # url(r'^payment/$', pay.payment, name='payment'),
    url(r'^payment/(?P<policy_id>\d+)/$', pay.payment, name='payment'),

   url(r'^price/$', home.price, name='price'),
    url(r'^pay/$', pay.pay, name='pay'),
     url(r'^pay_notify/$', pay.pay_notify, name='pay_notify'),
     url(r'^transaction/$', pay.transaction, name='transaction'),
      url(r'^organindex/$', organ.organindex, name='organindex'),
         url(r'^organinvite/$', organ.organinvite, name='organinvite'),
    url(r'^organclock/$', organ.organclock, name='organclock'),
    url(r'^organstaff/$', organ.organstaff, name='organstaff'),
    url(r'^Gindex/$', G.Gindex, name='Gindex'),
    url(r'^organclockdetail/$', organnext.organclockdetail,name="organclockdetail"),



]
